package com.fgs.common.toolbar;

import android.widget.ImageView;
import android.widget.RelativeLayout;
import android.widget.TextView;

import androidx.appcompat.widget.Toolbar;

/**
 * @author fgs
 * @date 2020/6/30
 * @description
 **/
public class ToolbarOptions {

    private Toolbar toolbar;
    private TextView titleTextView;
    private TextView subtitleTextView;
    private ImageView backIconImageView;
    private RelativeLayout backRelativeLayout;

    public Toolbar getToolbar() {
        return toolbar;
    }

    public ToolbarOptions setToolbar(Toolbar toolbar) {
        this.toolbar = toolbar;
        return this;
    }

    public ToolbarOptions setBackRelativeLayout(RelativeLayout backRelativeLayout) {
        this.backRelativeLayout = backRelativeLayout;
        return this;
    }

    public RelativeLayout getBackRelativeLayout() {
        return backRelativeLayout;
    }

    public TextView getTitleTextView() {
        return titleTextView;
    }

    public ToolbarOptions setTitleTextView(TextView titleTextView) {
        this.titleTextView = titleTextView;
        return this;

    }

    public TextView getSubtitleTextView() {
        return subtitleTextView;
    }

    public ToolbarOptions setSubtitleTextView(TextView subtitleTextView) {
        this.subtitleTextView = subtitleTextView;
        return this;
    }

    public ImageView getBackIconImageView() {
        return backIconImageView;
    }

    public ToolbarOptions setBackIconImageView(ImageView backIconImageView) {
        this.backIconImageView = backIconImageView;
        return this;
    }

    public String getTitle() {
        return title;
    }

    public String getSubtitle() {
        return subtitle;
    }

    public int getIconId() {
        return iconId;
    }

    public boolean isToolbarShow() {
        return isToolbarShow;
    }

    public boolean isBackIconShow() {
        return isBackIconShow;
    }


    private String title;
    private String subtitle;
    private int iconId;
    private boolean isToolbarShow;
    private boolean isBackIconShow;

    public ToolbarOptions() {
    }

    public ToolbarOptions setIsToolbarShow(boolean isShow) {
        this.isToolbarShow = isShow;
        return this;
    }

    public ToolbarOptions setSubtitle(String subtitle) {
        this.subtitle = subtitle;
        return this;
    }

    public ToolbarOptions setIsBackIconShow(boolean isShow) {
        isBackIconShow = isShow;
        return this;
    }

    public ToolbarOptions setBackIcon(int iconId) {
        this.iconId = iconId;
        return this;
    }

    public ToolbarOptions setTitle(String title) {
        this.title = title;
        return this;
    }
}
